/*
 * @Author: leemr lscmr@qq.com
 * @Date: 2023-12-11 17:43:37
 * @LastEditors: leemr lscmr@qq.com
 * @LastEditTime: 2023-12-26 09:53:42
 * @FilePath: \futures-bill\src\config\index.ts
 * @Description:配置接口
 *
 */
export const ENV = import.meta.env // 环境变量 development 本地测试 test 测试环境  production 正式环境
export const API = ENV.VITE_API //  接口域名
export const PASS = ENV.VITE_PASS // 登录域名
export const SECRET = ENV.VITE_SECRET
export const PROTOOL = location.protocol
export const TZJHWWW = PROTOOL + API
export const STATICWWW = PROTOOL + ENV.VITE_STATIC // 静态服务器域名
export const SHAREICON = `${STATICWWW}public/images/tou.png`
export const SHAREHREF = location.href

export const href = encodeURIComponent(location.href)
export const loginUrl = `${PASS}userlogin/index?return_url=${href}`
export const binfphone = `${PASS}userlogin/bindphone?return_url=${href}`
export const wxLogin
  = `${PASS}third/thirdhandle?type=weixin&method=login&return_url=${href}`

/* 微信分享默认配置 */
export const WXSHARECONFIG = {
  title: '投资江湖',
  desc: '不入江湖中，岂知投资道',
  link: SHAREHREF,
  imgUrl: SHAREICON,
}

export const storageKey = 'WXTZJH-'
